follow r77243 -- unit test was coded to hide the bug... doh! fix it up
authorMark A. Hershberger <mah@users.mediawiki.org>
Fri, 26 Nov 2010 00:21:36 +0000 (00:21 +0000)
committerMark A. Hershberger <mah@users.mediawiki.org>
Fri, 26 Nov 2010 00:21:36 +0000 (00:21 +0000)
maintenance/tests/phpunit/includes/TitlePermissionTest.php

index 9619036..c0a0346 100644 (file)
@@ -610,9 +610,9 @@ class TitlePermissionTest extends PHPUnit_Framework_TestCase {
                # $short
                $this->assertEquals( array( array( 'confirmedittext' ) ),
                                                         self::$title->getUserPermissionsErrors( 'move-target', self::$user ) );
+               $wgEmailConfirmToEdit = false;
                $this->assertEquals( true, self::$title->userCan( 'move-target' ) );
 
-               $wgEmailConfirmToEdit = false;
                # $wgEmailConfirmToEdit && !$user->isEmailConfirmed() && $action != 'createaccount'
                $this->assertEquals( array( ),
                                                         self::$title->getUserPermissionsErrors( 'move-target',